import request from '@/utils/request'

export function getMainHeadDataXb() {
  return request({
    url: '/datastatistics/mainXbIndex/getMainHeadDataXb',
    method: 'get',
  })
}
export function getMainWarnDataXb() {
  return request({
    url: '/datastatistics/mainXbIndex/getMainWarnDataXb',
    method: 'get',
  })
}
export function getMeterReadingRateXb() {
  return request({
    url: '/datastatistics/mainXbIndex/getMeterReadingRate',
    method: 'get',
  })
}
export function getGrowthRate() {
  return request({
    url: '/datastatistics/mainXbIndex/getGrowthRate',
    method: 'get',
  })
}

// 户表首页基础数据
export function homepageDataForXb(query) {
  return request({
    url: '/homepage/homepageDataForXb',
    method: 'get',
    params: query
  })
}
// 户表日用量统计
export function homepageDayUsageDataForXb(query) {
  return request({
    url: '/homepage/homepageDayUsageDataForXb',
    method: 'get',
    params: query
  })
}

// 户表首页数据-月用量数据
export function homepageMonthUsageDataForXb(query) {
  return request({
    url: '/homepage/homepageMonthUsageDataForXb',
    method: 'get',
    params: query
  })
}

// 户表首页数据-根据户表类型统计户表数量
export function xbCountByType() {
  return request({
    url: '/homepage/xbCountByType',
    method: 'get',
  })
}
// 户表首页数据-抄回数据
export function homepageCopyDataForXb(query) {
  return request({
    url: '/homepage/homepageCopyDataForXb',
    method: 'get',
    params: query
  })
}
